﻿@using Abp.Application.Services.Dto;
@using FwProject.Distribution.Dto.Statistics
@model List<QuarterlySummaryDayDto>


<div id="table_print">


    <table class="table table-bordered table-hover table-rowselected">
        <thead>
            <tr>
                <th>餐厅名称</th>
                <th>收款金额</th>
            </tr>
        </thead>
        <tbody>
            @if (Model.Count == 0)
            {
                <tr><td class="text-center" colspan="2">暂无信息</td></tr>
            }
            else
            {
                decimal amount = 0m;
                foreach (var item in Model)
                {
                    amount = amount + item.ReceiptAmount;
                    <tr>
                        <td>@item.RestaurantName</td>
                        <td>@item.ReceiptAmount</td>
                    </tr>
                }
                <tr class="footer">
                    <td class="text-center" style="color:red;">合计</td>
                    <td style="color:red;">@amount</td>
                </tr>
            }
        </tbody>
    </table>

</div>